home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Media Folders.xpl < prev    next >
Text File  |  1999-09-25  |  2KB  |  72 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="4"
  3. "COUNT"="5"
  4. "UIPATH"="System\File System\Folders: Data"
  5. "NAME"="Media Folders"
  6. "VERSION"="1.22"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Media Files Root"
  9. "TEXT 2"="My Media"
  10. "TEXT 3"="Graphics"
  11. "TEXT 4"="Web Graphics"
  12. "TEXT 5"="My Pictures"
  13. "DESCRIPTION 1"=""Media Files Root" specifies the root folder for all types of media files."
  14. "DESCRIPTION 2"=""My Media" specifies where you normally save your media files."
  15. "DESCRIPTION 3"=""Graphics" specifies where your graphics are saved (*.BMP, *.PNG and so on)."
  16. "DESCRIPTION 4"=""Web Graphics" specifies where you save your work that is somehow related with the Internet."
  17. "DESCRIPTION 5"=""My Pictures" is a generic path for pictures."
  18. "AUTHOR"="Xteq Systems"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  21. "COMMENT 2"="Thanks to CptSiskoX for his help!"
  22.  
  23.  
  24.  
  25. Sub Plugin_Initialize 
  26. ' if RegPathExists("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\") then
  27.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\@")
  28.   SetUIElement 1,s
  29.  
  30.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\MyMediaPath")
  31.   SetUIElement 2,s
  32.  
  33.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GraphicsPath") 
  34.   SetUIElement 3,s
  35.  
  36.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GrWebPath") 
  37.   SetUIElement 4,s
  38.  
  39.   s=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Pictures")
  40.   SetUIElement 5,s
  41. ' else
  42. '  Disable
  43. ' end if
  44. End Sub
  45.  
  46. Sub Plugin_CheckData(ElementIndex)
  47. End Sub
  48.  
  49. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  50.  s=GetUIElement(1)
  51.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\@",s,1)
  52.  
  53.  s=GetUIElement(2)
  54.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\MyMediaPath",s,1)
  55.  
  56.  s=GetUIElement(3)
  57.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GraphicsPath",s,1) 
  58.  
  59.  s=GetUIElement(4)
  60.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GrWebPath",s,1) 
  61.  
  62.  s=GetUIElement(5)
  63.  Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Pictures",s,1) 
  64. End Sub
  65.  
  66.  
  67. Sub Plugin_Terminate 
  68. End Sub
  69.  
  70.  
  71.  
  72.